﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MySql.Data.MySqlClient;

namespace Common.util
{
    public class DbUtils
    {
       
        //获取hot_topic数据库的连接
        public static MySqlConnection GetHotTopicConnection()
        {
            var conn = new MySqlConnection(Config.HotTopicConnectionString);
            
            conn.Open();
            return conn;
        }
        //阿里云链接
        public static MySqlConnection GetHotTopicConnection2()
        {
            var conn = new MySqlConnection(Config.HotTopicConnectionString2);

            conn.Open();
            return conn;
        }
    }
}
